java怎么输出如图中的[1, 3, -1, 5, 2],求代码答:package com.beicai2;//冒泡排序import java.util.Arrays;public class Test1 { public static void main(String[] args) { int temp=0; int []array=new int[]{1,3,-1,5,-2}; int []newArray=new int[]{1,3,-1,5,-2}; for (int i = 0; i < newArray.leng...